## Process this file with automake to produce Makefile.in

## Created by Anjuta

INCLUDES = \
	-DPACKAGE_LOCALE_DIR=\""$(prefix)/$(DATADIRNAME)/locale"\" \
	-DPACKAGE_SRC_DIR=\""$(srcdir)"\" \
	-DPACKAGE_DATA_DIR=\""$(datadir)"\" 

noinst_HEADERS = \
	AuthSQL.h \
	Base64.h \
	Campaign.h \
	CampaignSQL.h \
	ConfigurationFile.h \
	CSVParser.h \
	DBStatusUpdater.h \
	DBUsageLogger.h \
	Daemon.h \
	DomainAuth.h \
	DomainKeys.h \
	DomainsMap.h \
	HMAC.h \
	Key.h \
	MessageDetails.h \
	MySQLBase.h \
	PHPSerializer.h \
	Process.h \
	QuotedPrintable.h \
	Recipient.h \
	Resolver.h \
	SMTPSession.h \
	StatusUpdater.h \
	Substitute.h \
	Threads.h \
	TimeConverter.h \
	Timer.h \
	TestFile.h \
	URLEncoding.h \
	UsageLogger.h \
	WebAPI.h

noinst_LTLIBRARIES = libCommon.la libMail.la

if HAVE_FASTCGI
bin_PROGRAMS = csv2givemail givemail givemaild webapi-key-manager webapi.fcgi
else
if USE_DB
bin_PROGRAMS = csv2givemail givemail givemaild
else
bin_PROGRAMS = csv2givemail givemail
endif
endif

libCommon_la_SOURCES = \
	Base64.cc \
	Campaign.cc \
	ConfigurationFile.cc \
	CSVParser.cc \
	Daemon.cc \
	HMAC.cc \
	Key.cc \
	MessageDetails.cc \
	Process.cc \
	QuotedPrintable.cc \
	Recipient.cc \
	Resolver.cc \
	PHPSerializer.cc \
	StatusUpdater.cc \
	Substitute.cc \
	TimeConverter.cc \
	Timer.cc \
	URLEncoding.cc \
	UsageLogger.cc

if USE_DB
if USE_MYSQL
libCommon_la_SOURCES += \
	AuthSQL.cc \
	CampaignSQL.cc \
	DBStatusUpdater.cc \
	DBUsageLogger.cc \
	MySQLBase.cc \
	WebAPI.cc
endif
endif

libMail_la_SOURCES = \
	DomainAuth.cc \
	DomainKeys.cc \
	DomainsMap.cc \
	SMTPSession.cc \
	Threads.cc \
	TestFile.cc

csv2givemail_SOURCES = \
	csv2givemail.cc

csv2givemail_LDFLAGS = \
	-rdynamic

csv2givemail_LDADD = \
	-lMail -lCommon \
	@RESOLV_LIB@ \
	@LIBESMTP_LIBS@ \
	@LIBXML_LIBS@ \
	@HTTP_LIBS@ \
	$(libdomainkeysdir)/libdomainkeys.a \
	@OPENSSL_LIBS@ \
	@DB_LIBS@

csv2givemail_DEPENDENCIES = libCommon.la libMail.la

givemail_SOURCES = \
	givemail.cc

givemail_LDFLAGS = \
	-rdynamic

givemail_LDADD = \
	-lMail -lCommon \
	@RESOLV_LIB@ \
	@LIBESMTP_LIBS@ \
	@LIBXML_LIBS@ \
	@HTTP_LIBS@ \
	$(libdomainkeysdir)/libdomainkeys.a \
	@OPENSSL_LIBS@ \
	@DB_LIBS@

givemail_DEPENDENCIES = libCommon.la libMail.la

givemaild_SOURCES = \
	givemaild.cc

givemaild_LDFLAGS = \
	-rdynamic

givemaild_LDADD = \
	-lCommon \
	@RESOLV_LIB@ \
	@LIBXML_LIBS@ \
	@HTTP_LIBS@ \
	@DB_LIBS@

givemaild_DEPENDENCIES = libCommon.la

webapi_key_manager_SOURCES = \
	webapi-key-manager.cc

webapi_key_manager_LDFLAGS = \
	-rdynamic

webapi_key_manager_LDADD = \
	-lCommon \
	@RESOLV_LIB@ \
	@LIBXML_LIBS@ \
	@HTTP_LIBS@ \
	@OPENSSL_LIBS@ \
	@DB_LIBS@

webapi_key_manager_DEPENDENCIES = libCommon.la

webapi_fcgi_SOURCES = \
	webapi-fcgi.cc

webapi_fcgi_LDFLAGS = \
	-rdynamic

webapi_fcgi_LDADD = \
	-lCommon \
	@RESOLV_LIB@ \
	@LIBXML_LIBS@ \
	@HTTP_LIBS@ \
	@OPENSSL_LIBS@ \
	@FASTCGI_LIBS@ \
	@DB_LIBS@

webapi_fcgi_DEPENDENCIES = libCommon.la

AM_CXXFLAGS = \
	-g -Wall \
	-fPIC \
	@LIBESMTP_CFLAGS@ \
	@LIBXML_CFLAGS@ \
	@HTTP_CFLAGS@ \
	@OPENSSL_CFLAGS@ \
	@FASTCGI_CFLAGS@ \
	@DB_CFLAGS@ \
	-I$(libdomainkeysdir)

